package dbhandler.handler;

import dbhandler.ResultSetHandler;
import dbhandler.Row;

import java.sql.ResultSet;
import java.sql.SQLException;

public class ArrayHandler implements ResultSetHandler<Object[]> {
    public Object[] handler(ResultSet rs) throws SQLException {
        return rs.next()? Row.toArray(rs):null;
    }
}
